﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Stores;
using System.ComponentModel;

namespace SingleUserMall.Mall
{
    /// <summary>
    /// 横幅
    /// </summary>
    public class Banner : FullAuditedEntity<long>, IHasStore
    {
        /// <summary>
        /// 图片
        /// </summary>
        public string Picture { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 位置
        /// </summary>
        public BannerLocation BannerLocation { get; set; }
        /// <summary>
        /// 店铺id
        /// </summary>
        public int StoreId { get; set; }
    }

    public enum BannerLocation
    {
        /// <summary>
        /// 上部横幅
        /// </summary>
        [Description("首页上部广告")]
        Up = 0,
        /// <summary>
        /// 中部横幅
        /// </summary>
        [Description("首页中部广告")]
        Middle = 1,
        /// <summary>
        /// 抢购
        /// </summary>
        [Description("首页抢购图")]
        TimeLimit = 2,
        /// <summary>
        /// 团购
        /// </summary>
        [Description("首页团购图")]
        Group = 3,
        /// <summary>
        /// 有好货
        /// </summary>
        [Description("首页有好货图")]
        Good = 4,
        /// <summary>
        /// 批发中心
        /// </summary>
        [Description("批发中心")]
        PF = 5,
        /// <summary>
        /// 代理入口
        /// </summary>
        [Description("代理入口")]
        DL = 6,
        /// <summary>
        /// 张健品牌
        /// </summary>
        [Description("张健品牌")]
        ZJ = 7,
        /// <summary>
        /// 农副
        /// </summary>
        [Description("农副产品")]
        NF = 8,
        /// <summary>
        /// 二维码背景
        /// </summary>
        [Description("二维码背景")]
        EWM = 9,
        /// <summary>
        /// 数字货币专区
        /// </summary>
        [Description("数字货币专区")]
        ZQ = 10,
        /// <summary>
        /// 积分商城
        /// </summary>
        [Description("积分商城")]
        JFSC = 11,
        /// <summary>
        /// 代理商城
        /// </summary>
        [Description("代理商城")]
        DLSC = 12,
        /// <summary>
        /// 信用卡中心
        /// </summary>
        [Description("信用卡中心")]
        XYK = 13,
        /// <summary>
        /// 代理中心说明图
        /// </summary>
        [Description("代理中心说明图")]
        DLSM = 14
    }
}
